import { createRouter, createWebHistory } from "vue-router";
import Layout from "@/components/Layout.vue";

import standardQuery from "@/views/informationDisclosure/standardQuery/index.vue";
import standardQueryFeedback from "@/views/informationDisclosure/standardQuery/components/standardQueryFeedback.vue";

import standardSystem from "@/views/informationDisclosure/standardSystem/index.vue";
import detailRecord from "@/views/informationDisclosure/standardSystem/components/detailRecord.vue";
// 政策性文件
import policyDocument from "@/views/informationDisclosure/policyDocument/index.vue";
// 通知发布
import noticeRelease from "@/views/informationDisclosure/noticeRelease/index.vue";
// 标准国际化
import international from "@/views/informationDisclosure/international/index.vue";
//通知发布
import solicitOpinions from "@/views/standardManager/solicitOpinions/index.vue";
//标准发布
import standardRelease from "@/views/standardManager/standardRelease/index.vue";
//科研成果展示
import scientificResearch from "@/views/scientificResearch/index.vue";
//宣贯培训
import training from "@/views/supervision/training/index.vue";
//标准咨询
import consultations from "@/views/supervision/consultations/index.vue";
//标准国际化信息发布
import standardApplication from "@/views/groupStandard/application/index.vue";
//长三角标准信息发布
import yangtzeRiverDelta from "@/views/informationDisclosure/yangtzeRiverDelta/index.vue";
import applicationInfo from "@/views/groupStandard/applicationInfo/index.vue";
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: "/",
      name: "index",
      component: Layout,
    },
    // 标准查询
    {
      path: "/standardQuery",
      name: "standardQuery",
      component: standardQuery,
    },
    // 工程建设标准体系
    {
      path: "/standardSystem",
      name: "standardSystem",
      component: standardSystem,
    },
    {
      path: "/standardQueryFeedback/:id/:opinionTemplateId/:projectInfoId",
      name: "standardQueryFeedback",
      component: standardQueryFeedback,
    },
    // 工程建设标准体系-详情
    {
      path: "/detailRecord/:id",
      name: "detailRecord",
      component: detailRecord,
    },
    // 政策性文件
    {
      path: "/policyDocument",
      name: "policyDocument",
      component: policyDocument,
    },
    // 通知发布
    {
      path: "/noticeRelease",
      name: "noticeRelease",
      component: noticeRelease,
    },
    // 标准国际化
    {
      path: "/international",
      name: "international",
      component: international,
    },
    // 征求意见
    {
      path: "/solicitOpinions",
      name: "solicitOpinions",
      component: solicitOpinions,
    },
    // 标准发布
    {
      path: "/standardRelease",
      name: "standardRelease",
      component: standardRelease,
    },
    // 科研成果展示
    {
      path: "/scientificResearch",
      name: "scientificResearch",
      component: scientificResearch,
    },
    // 宣贯培训
    {
      path: "/training",
      name: "training",
      component: training,
    },
    // 标准国际化信息发布
    {
      path: "/applicationInfo",
      name: "applicationInfo",
      component: applicationInfo,
    },
    // 长三角信息发布
    {
      path: "/yangtzeRiverDelta",
      name: "yangtzeRiverDelta",
      component: yangtzeRiverDelta,
    },
    {
      path: "/standardApplication",
      name: "standardApplication",
      component: standardApplication,
    },
    //标准咨询
    {
      path: "/consultations",
      name: "consultations",
      component: consultations,
    },
    {
      path: "/standardManager/solicitOpinions/detail",
      name: "SolicitOpinionsDetail",
      component: () => import("@/views/standardManager/solicitOpinions/components/detail.vue"),
    },
    {
      //demo
      path: "/all",
      name: "all",
      component: () => import("@/views/all/index.vue"),
    },
  ],
});

export default router;
